<template>
  <div>
    <el-card class="mycard">
      <div class="content">
        <div class="left">
          <div class="left-box" v-if="showleft">
            <slot name="left">
              <i class="el-icon-info"></i>
              <span>本月：社保在缴 公积金在缴 增员 减员 入职 离职</span>
            </slot>
          </div>
        </div>
        <div class="right">
          <slot name="right">
            <el-button type="primary" size="mini">导入</el-button>
            <el-button type="primary" size="mini">+ 新增员工</el-button>
          </slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'mytools',
  props: ['showleft']
}
</script>

<style lang="scss">

.content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .left-box {
    padding: 8px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    font-size: 14px;

    i {
      color: #409eff;
      margin-right: 8px;
    }
  }
}
</style>
